<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<html>
<head>
    <title>login</title>
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.2/js/bootstrapValidator.min.js"></script>
    <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.2/css/bootstrapValidator.min.css"/>
    <link rel="stylesheet" href="css/bg.css">
    <script src="js/inputValidator.js"></script>
</head>
<body>
<%--<a href="/registerInput"  class="btn btn-success btn-lg active" style=": 20px">Register</a>--%>
<%--<button type="button" class="btn btn-outline-primary"><a href="/registerInput">Register</a></button>--%>
<div class="container">
    <a href="/registerInput"  class="btn btn-success " style="float: right;">Register</a>
    <form action="/loginCheck" id="form1">
    <div class="form row">
        <div class="form-horizontal col-md-offset-3" id="login_form">
            <h3 class="form-title">LOGIN</h3>
            <div class="col-md-9">
                <div class="form-group">
                    <i class="fa fa-user fa-lg"></i>
                    <input class="form-control required" type="text" placeholder="Username" id="username" name="username" autofocus="autofocus" maxlength="20"/>
                    <span></span>
                </div>
                <div class="form-group">
                    <i class="fa fa-lock fa-lg"></i>
                    <input class="form-control required" type="password" placeholder="Password" id="password" name="password" maxlength="8"/>
                </div>
                <div class="form-group">
                    <label class="checkbox">
                        <input type="radio" name="identity" value="customer" checked />顾客
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="identity" value="admin"/>管理员
                    </label>
                </div>
                <div class="form-group col-md-offset-9">
                    <input class="btn btn-success pull-right" type="submit" >
                </div>
            </div>
        </div>
    </div>
    </form>
</div>
</body>
</html>